package ran.quzitech.rnutils.http;

import java.util.HashMap;

public class Config {

    public static final int CheckUpdate = 0;
    private static final String serverName = "http://bellman.quzitech.com";
    private static final String serverUrl = "/app";
    private static final HashMap<Integer, String> map = new HashMap<Integer, String>();

    static {
        map.put(CheckUpdate, "/firmware/check");

    }
//http://bellman.quzitech.com/app/firmware/check?version=1
    /**
     * 获取url
     *
     * @param code
     * @return
     */
    public static String getUrl(int code) {

        return serverName + serverUrl + map.get(code);

    }


}
